{% if site.google_analytics.enable %}
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics.id }}', '{{ site.google_analytics.site }}');  
ga('send', 'pageview');
</script>
{% endif %}

{% if site.baidu_tongji.enable %}
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F{{ site.baidu_tongji.sitecode }}' type='text/javascript'%3E%3C/script%3E"));
</script>
{% endif %}

{% if site.cnzz_tongji.enable %}
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_{{ site.cnzz_tongji.siteid }}'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s23.cnzz.com/z_stat.php%3Fid%3D{{ site.cnzz_tongji.siteid }}' type='text/javascript'%3E%3C/script%3E"));</script>
{% endif %}